//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.0.2723.0
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by wsdl, Version=1.0.2723.0.
// 
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.Web.Services;


[System.Web.Services.WebServiceBindingAttribute(Name="SessionStateExampleSoap", Namespace="http://tempuri.org/")]
public class SessionStateExample : System.Web.Services.Protocols.SoapHttpClientProtocol {
    
    public SessionStateExample() {
        this.Url = "http://localhost/wrox/4885/WebServices/Consume/SessionState/Server/SessionState_v" +
"b.asmx";
    }
    
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetSession", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
    public object SetSession(string key, string item) {
        object[] results = this.Invoke("SetSession", new object[] {key,
                    item});
        return ((object)(results[0]));
    }
    
    public System.IAsyncResult BeginSetSession(string key, string item, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("SetSession", new object[] {key,
                    item}, callback, asyncState);
    }
    
    public object EndSetSession(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((object)(results[0]));
    }
    
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetSession", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
    public string GetSession(string key) {
        object[] results = this.Invoke("GetSession", new object[] {key});
        return ((string)(results[0]));
    }
    
    public System.IAsyncResult BeginGetSession(string key, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("GetSession", new object[] {key}, callback, asyncState);
    }
    
    public string EndGetSession(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((string)(results[0]));
    }
}
